package org.winexpress

class WineRegion {
    // E.g. France: Burgundy, Pyrenees, Bordeaux; Australia: Clare Valley, Barossa Valley, Coonawarra
    
    int id
    String wineRegionName
    String description
    
    static hasOne = [country:Country]
    
    static mapping = {
        description type: 'text'
    }

    static constraints = {
        id(blank:false, unique:true)
        wineRegionName(blank:false, unique:true)
    }
}
